package com.wn.class30.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * user_address
 * @author 
 */
@Data
@NoArgsConstructor
public class UserAddress implements Serializable {
    /**
     * 地址id
     */
    private Integer userAddressId;

    /**
     * 收件人姓名
     */
    private String name;

    /**
     * 收件人电话
     */
    private String tel;

    /**
     * 收件人地址
     */
    private String addr;

    /**
     * 邮编
     */
    private String zipcode;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 是否默认
     */
    private Integer isdefault;

    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userAddressId=").append(userAddressId);
        sb.append(", name=").append(name);
        sb.append(", tel=").append(tel);
        sb.append(", addr=").append(addr);
        sb.append(", zipcode=").append(zipcode);
        sb.append(", userId=").append(userId);
        sb.append(", isdefault=").append(isdefault);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}